<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../../../inc/conn.asp"-->
<!--#include file="../common/u.asp"-->
<%links="security"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>账户安全</title>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.tabs.js"></script>
<script language="javascript" type="text/javascript" src="/js/pd.js"></script>
<script type="text/javascript"> 
 <!-- 
//将用户输入异步提交到服务器 
function ajaxSubmit(){ 
 //获取用户输入
var mobile="<%=mail%>"; 
var typeid="2"; 
if (mobile=="")
{alert("邮箱不能为空");
return false;
}
if(!CheckEmail(mobile)){
alert("邮箱输入错误");
return false;
} 
 //创建XMLHttpRequest对象 
var xmlhttp; 
 try{ 
 xmlhttp=new XMLHttpRequest(); 
 }catch(e){ 
 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
 } 
 //创建请求结果处理程序 
xmlhttp.onreadystatechange=function(){ 
 if (4==xmlhttp.readyState){ 
 if (200==xmlhttp.status){ 
 var date=xmlhttp.responseText; 
 addToList(date); 
 }else{ 
 alert("error"); 
 } 
 } 
 } 
 //打开连接，true表示异步提交 
xmlhttp.open("post", "/reg/mobile", true); 
 //当方法为post时需要如下设置http头 
xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded'); 
 //发送数据 
xmlhttp.send("mobile="+escape(mobile)+"&typeid="+escape(typeid)); 
alert("发送成功");
 } 
 //--> 
</script> 
<script>
function myjobchk(){
if (document.formcn.code.value=="")
{alert("验证码不能为空");
document.formcn.code.focus();
return false;
}      
return(true);
}
</script>
</head>
<body>

<!--#include file="../../common/top.asp"-->





<div class="fullwidth">
	<div class="place ">
		<a href="/">首页</a> &gt; <a href="/user">会员中心</a> &gt; 账户安全
	</div>
</div>
<!--main-->
<div class="fullwidth bg1">
	<div class="main">
		
		
        
        <!--#include file="../common/left.asp"-->
        
        
        
		
		<div class="right_show f_r">
			
			<div class="title_4">
				<h2>账户安全</h2><div></div>
			</div>
			<div class="reg_box reg_s_1 account order_tab order_tab_3">
				<ul class="tab_menu">
					<li><a href="/user/security">密码修改</a></li>
					<li class="current">邮箱修改</li>
				</ul>
				<div class="tab_box">
					<div class="hide">
						<div class="clear20"></div>
						<div class="clear20"></div>
						
						<div class="clear20"></div>
					</div>
					<div>						
						<div class="clear20"></div>
						<div class="clear20"></div>
						<div class="width700"> 
							<div class="passet_step">
								<ul>
									<li class="rs_1 orange">邮箱验证码验证</li>
									<li class="rs_2">重置邮箱</li>
									<li class="rs_3">完成</li>
								</ul>
							</div>
							<div class="clear20"></div>
							<form name="formcn" method="post" action="" onSubmit="return myjobchk();" class="s_form_1">
								<p class="tip_2">发送验证码到您的邮箱<%=mail%>，<a class="orange" href="javascript:void(0)" onClick="ajaxSubmit()">确认发送</a></p>
								<dl class="dl_step_2">						
									<dd>
										<span class="span_l">验证码：</span>
										<input type="text" name="code" value="<%=session("code")%>" class="text" />
									</dd>
									<dd>
										<input type="submit" value="下一步" class="btn4 ml130" />
                                        <input type="hidden" name="t" value="y" />
									</dd>
								</dl>
							</form>
						</div>
					</div>				
					
				</div>
				<div class="clear20"></div>
				<div class="clear20"></div>
			</div>	
			
		</div>
		
		
	</div>
</div>

<div class="clear"></div>



<!--#include file="../../common/footer.asp"-->




</body>
</html>
<%
if request.Form("t")="y" then
  code=checkstr(inHTML(request.Form("code")))
  if code<>trim(session("mobileNum")) or mail<>trim(session("mobilePost")) then
  response.write"<script>alert('验证码错误');</script>"
  response.write"<script>window.history.back(-1);</script>"
  response.end
  end if
  session("code")=code
  response.Redirect "/user/security/mail/2"
end if
%>